﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>批量上传——风声 ASP 无组件上传类 V2.11 [Fonshen ASP UpLoadClass Version 2.11]</title>
<meta name="Keywords" content="ASP,无组件上传,上传组件,图片上传,风声,风声边界,Fonshen,Upload" />
<meta name="Description" content="风声 ASP 无组件上传类,Fonshen ASP UpLoadClass" />
<link href="../styles/works.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
var bOnLoad = true;
function setFileFileds(num){
	num = parseInt(num);
	if(bOnLoad||confirm("修改附件数量将刷新所有文件域，确定继续！"))
	{
		for(var i=0,str="";i<num;i++){
			str+="<input name=\"strFile"+i+"\" type=\"file\" id=\"strFile"+i+"\"><br />";
		}
		document.getElementById("objFiles").innerHTML=str;
		bOnLoad = false;
	}
}
//-->
</script>
</head>
<body id="UpLoadClass_V2.11">
	<div id="Context">
		<div id="Topic">
			风声 ASP 无组件上传类 V2.11 [Fonshen ASP UpLoadClass Version 2.11]
		</div>
		<div id="Nav">
			<a href="http://www.fonshen.com">更多风声作品</a>
		</div>
		<div id="Menu">
			<a href="../index.htm">首 页</a>
			<a href="../help/help1.htm">对象参考</a>
			<a href="../help/help2.htm">专家说明</a>
			<a href="../demo1/index.htm">范例一</a>
			<a href="../demo2/index.htm">范例二</a>
			<a>范例三</a>
			<a href="../speed/index.htm">速度测试</a>
			<a href="../speed/uplist.asp">测试结果</a>
		</div>
		<p id="Title">
			范例三：批量上传[上传附件]
		</p>
		<div id="Content">
			'---------------------------------------------------------- <br />
			'该例主要说明默认模式下 FileItem 在批量上传中的应用<br />
			'以上传附件为例<br />
			'该例以 <span class="Highlight">UTF-8</span> 字符集测试<br />
			'----------------------------------------------------------
			<form action="upload.asp" enctype="multipart/form-data" name="form1" method="post">
			<table width="100%" border="0" cellpadding="2" cellspacing="1">
				<tr>
					<th width="180">项目</th>
					<th>内容</th>
				</tr>
				<tr>
					<td width="180">邮件标题</td>
					<td><input name="strTitle" type="text" id="strTitle" /></td>
				</tr>
				<tr>
					<td width="180">内容</td>
					<td><textarea name="strContent" cols="45" rows="6" id="strContent"></textarea></td>
				</tr>
				<tr>
					<td width="180" valign="top">
						选择附件数量
						<select name="select" onchange="setFileFileds(this.value)">
							<option value="1" selected="selected">1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>
							<option value="6">6</option>
							<option value="7">7</option>
							<option value="8">8</option>
							<option value="9">9</option>
						</select>
					</td>
					<td id="objFiles"></td>
				</tr>
				<tr>
					<td width="180">&nbsp;</td>
					<td>
						<input type="submit" name="Submit" value="提  交" />
						<input type="reset" name="Submit2" value="重  置" />
					</td>
				</tr>
			</table>
			</form>
			<script type="text/JavaScript">setFileFileds(document.forms[0].select.value);</script>
		</div>
		<div id="Copyright">
			风声 ASP 无组件上传类 V2.11<br />
			&copy;2008 Powered by <a href="http://www.fonshen.com/" target="_blank">fonshen.com</a>
		</div>
	</div>

   	<script type="text/javascript" src="http://www.fonshen.com/scripts/works.asp" charset="UTF-8"></script>
</body>
</html>